package com.example.dto;

import com.example.entity.User;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;


@Data
public class UserDto extends User {

    @JsonSerialize(using = ToStringSerializer.class)
    private Long departmentId;

    private String departmentName;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long positionId;

    private String positionName;
}
